package com.bike.entity;

public class HhCity {
	 private Long itemid; 
	 private Long parentid; 
	 private String title; 
	 private String shortname; 
	 private Integer level; 
	 private Long rootid; 
	 private String parentName; 
	 private String rootName; 
	 
	 private Long id;
	 private String text;
	 private String textSchool;
	 private String textAgent;
    private String state;
    private Long pid;
	 
    public String getText() {
		return title;
	}
	public void setText(String text) {
		this.text = text;
	}
    public void setState(String state) {
		this.state = state;
	}
	public void setPid(Long pid) {
		this.pid = pid;
	}
	public String getState() {
		if(level<3 ){
			return "closed";
		}
		return "open";
	}
    public Long getPid() {
    	return parentid;
    }
    public Long getId() {
		return itemid;
	}
	public void setId(Long id) {
		this.id = id;
	}
    
    
    public Long getItemid() {
        return itemid;
    }
     public void setItemid(Long itemid) {
        this.itemid = itemid;
    }
    public Long getParentid() {
        return parentid;
    }
     public void setParentid(Long parentid) {
        this.parentid = parentid;
    }
    public String getTitle() {
        return title;
    }
     public void setTitle(String title) {
        this.title = title;
    }
    public String getShortname() {
        return shortname;
    }
     public void setShortname(String shortname) {
        this.shortname = shortname;
    }
    public Integer getLevel() {
        return level;
    }
     public void setLevel(Integer level) {
        this.level = level;
    }
    public Long getRootid() {
        return rootid;
    }
     public void setRootid(Long rootid) {
        this.rootid = rootid;
    }
    public String getParentName() {
        return parentName;
    }
     public void setParentName(String parentName) {
        this.parentName = parentName;
    }
    public String getRootName() {
        return rootName;
    }
     public void setRootName(String rootName) {
        this.rootName = rootName;
    }
}